<template>
<div class="w100">
	<div class="none_img"  v-if="!isLoad && length==0">
		<img src="http://guizhou-oss.oss-cn-guiyang-gzdata-d01-a.res.gzdata.com.cn/qiji/none_sj_ll.png" style="height: auto" />
		<div class="">暂无数据</div>
	</div>
	<div v-if="!isfinish" class="loading" :style="'opacity:'+((isLoad && length>0)||!isfinish?'1':'0')">
		<van-loading />
		<text class="load-text">正在加载更多...</text>
	</div>
	<div class="nomore" v-if="isfinish && length>0"> {{isfinish?'没有更多了~':''}} </div>
</div>
</template>

<script setup>
const props = defineProps({
	isfinish:{
		type:Boolean,
		default:false
	},
	isLoad:{
		type:Boolean,
		default:false
	},
	length:{
		type:Number,
		default:0
	},
})
</script>

<style scoped lang="scss">
.nomore{
  height: 60px;
  line-height: 60px;
  text-align: center;
  color: #888;
}
.loading{
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: #888;
  img{
    width: 32px;
    height: 32px;
    margin-right: 10px;
    animation: zhuan 1.2s linear infinite;
  }
}
@keyframes zhuan {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.none_img{
  width: 100%;
  text-align: center;
  image{
    margin-top: 60px;
    width: 115px;
    height:60px;
  }
  div{
    font-size: 14px;
    font-weight: 500;
    color: #666666;;
    margin-top:20px;
  }
}
</style>